<!DOCTYPE HTML>
<html lang="zh-CN">


<head>
    <meta charset="utf-8">
    <meta name="keywords" content="tizk构建思维导图, 我心永恆的小站">
    <meta name="description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <!-- Global site tag (gtag.js) - Google Analytics -->


    <title>tizk构建思维导图 | 我心永恆的小站</title>
    <link rel="icon" type="image/png" href="/favicon.png">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery.min.js"></script>
    <link rel="stylesheet" href="/css/vs2015.css">

<meta name="generator" content="Hexo 4.2.0"><link rel="alternate" href="/atom.xml" title="我心永恆的小站" type="application/atom+xml">
</head>


<body>
    <header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    
                    <img src="/medias/logo.png" class="logo-img" alt="LOGO">
                    
                    <span class="logo-span">我心永恆的小站</span>
                </a>
            </div>
            

<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/" class="waves-effect waves-light">
      
      <i class="fas fa-home" style="zoom: 0.6;"></i>
      
      <span>首页</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/tags" class="waves-effect waves-light">
      
      <i class="fas fa-tags" style="zoom: 0.6;"></i>
      
      <span>标签</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/categories" class="waves-effect waves-light">
      
      <i class="fas fa-bookmark" style="zoom: 0.6;"></i>
      
      <span>分类</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/archives" class="waves-effect waves-light">
      
      <i class="fas fa-archive" style="zoom: 0.6;"></i>
      
      <span>归档</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/about" class="waves-effect waves-light">
      
      <i class="fas fa-user-circle" style="zoom: 0.6;"></i>
      
      <span>关于</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/contact" class="waves-effect waves-light">
      
      <i class="fas fa-comments" style="zoom: 0.6;"></i>
      
      <span>留言板</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/friends" class="waves-effect waves-light">
      
      <i class="fas fa-address-book" style="zoom: 0.6;"></i>
      
      <span>友情链接</span>
    </a>
    
  </li>
  
  <li>
    <a href="#searchModal" class="modal-trigger waves-effect waves-light">
      <i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
    </a>
  </li>
</ul>

<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/medias/logo.png" class="logo-img circle responsive-img">
        
        <div class="logo-name">我心永恆的小站</div>
        <div class="logo-desc">
            
            Never really desperate, only the lost of the soul.
            
        </div>
    </div>

    

    <ul class="menu-list mobile-menu-list">
        
        <li class="m-nav-item">
	  
		<a href="/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-home"></i>
			
			首页
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/tags" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-tags"></i>
			
			标签
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/categories" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-bookmark"></i>
			
			分类
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/archives" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-archive"></i>
			
			归档
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/about" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-user-circle"></i>
			
			关于
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/contact" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-comments"></i>
			
			留言板
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/friends" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-address-book"></i>
			
			友情链接
		</a>
          
        </li>
        
        
    </ul>
</div>

        </div>

        
    </nav>

</header>

    



<div class="bg-cover pd-header post-cover" style="background-image: url('/medias/featureimages/5.jpg')">
    <div class="container" style="right: 0px;left: 0px;">
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="brand">
                    <h1 class="description center-align post-title">tizk构建思维导图</h1>
                </div>
            </div>
        </div>
    </div>
</div>




<main class="post-container content">

    
    <link rel="stylesheet" href="/libs/tocbot/tocbot.css">
<style>
    #articleContent h1::before,
    #articleContent h2::before,
    #articleContent h3::before,
    #articleContent h4::before,
    #articleContent h5::before,
    #articleContent h6::before {
        display: block;
        content: " ";
        height: 100px;
        margin-top: -100px;
        visibility: hidden;
    }

    #articleContent :focus {
        outline: none;
    }

    .toc-fixed {
        position: fixed;
        top: 64px;
    }

    .toc-widget {
        width: 345px;
        padding-left: 20px;
    }

    .toc-widget .toc-title {
        margin: 35px 0 15px 0;
        padding-left: 17px;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    .toc-widget ol {
        padding: 0;
        list-style: none;
    }

    #toc-content {
        height: calc(100vh - 250px);
        overflow: auto;
    }

    #toc-content ol {
        padding-left: 10px;
    }

    #toc-content ol li {
        padding-left: 10px;
    }

    #toc-content .toc-link:hover {
        color: #42b983;
        font-weight: 700;
        text-decoration: underline;
    }

    #toc-content .toc-link::before {
        background-color: transparent;
        max-height: 25px;
    }

    #toc-content .is-active-link {
        color: #42b983;
    }

    #toc-content .is-active-link::before {
        background-color: #42b983;
    }

    #floating-toc-btn {
        position: fixed;
        right: 15px;
        bottom: 76px;
        padding-top: 15px;
        margin-bottom: 0;
        z-index: 998;
    }

    #floating-toc-btn .btn-floating {
        width: 48px;
        height: 48px;
    }

    #floating-toc-btn .btn-floating i {
        line-height: 48px;
        font-size: 1.4rem;
    }
</style>
<div class="row">
    <div id="main-content" class="col s12 m12 l9">
        <!-- 文章内容详情 -->
<div id="artDetail">
    <div class="card">
        <div class="card-content article-info">
            <div class="row tag-cate">
                <div class="col s7">
                    
                    <div class="article-tag">
                        
                            <a href="/tags/%E6%95%99%E7%A8%8B/">
                                <span class="chip bg-color">教程</span>
                            </a>
                        
                            <a href="/tags/tikz/">
                                <span class="chip bg-color">tikz</span>
                            </a>
                        
                            <a href="/tags/tex/">
                                <span class="chip bg-color">tex</span>
                            </a>
                        
                    </div>
                    
                </div>
                <div class="col s5 right-align">
                    
                </div>
            </div>

            <div class="post-info">
                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-minus fa-fw"></i>发布日期:&nbsp;&nbsp;
                    2020-03-31
                </div>
                

                
                <div class="post-date info-break-policy">
                    <i class="far fa-calendar-check fa-fw"></i>更新日期:&nbsp;&nbsp;
                    2020-03-31
                </div>
                

                
                <div class="info-break-policy">
                    <i class="far fa-file-word fa-fw"></i>文章字数:&nbsp;&nbsp;
                    3.9k
                </div>
                

                
                <div class="info-break-policy">
                    <i class="far fa-clock fa-fw"></i>阅读时长:&nbsp;&nbsp;
                    16 分
                </div>
                

                
                    <div id="busuanzi_container_page_pv" class="info-break-policy">
                        <i class="far fa-eye fa-fw"></i>阅读次数:&nbsp;&nbsp;
                        <span id="busuanzi_value_page_pv"></span>
                    </div>
				
            </div>

        </div>
        <hr class="clearfix">
        <div class="card-content article-card-content">
            <div id="articleContent">
                <h1 id="tizk构建思维导图"><a href="#tizk构建思维导图" class="headerlink" title="tizk构建思维导图"></a><center>tizk构建思维导图</center></h1><p>首先需要调用宏包：</p>
<pre class=" language-tex"><code class="language-tex">\usetikzlibrary{mindmap}</code></pre>
<p>这个包提供了绘制思维导图的样式</p>
<h2 id="1-综述："><a href="#1-综述：" class="headerlink" title="1. 综述："></a>1. 综述：</h2><p>这个宏包的目的是使思维导图的创建更容易。</p>
<p>每个思维导图都应该放在一个范围或一幅使用思维导图样式的图片中。此样式有一个内置的样式。</p>
<p>TikZ的思维导图库生成的思维导图看起来有点不同于标准的思维导图:虽然大概念仍然是一个圆，但是相关的概念也被描述为较小的圆。</p>
<p>整体效果在视觉上是相当令人愉悦的，但是当读者看到这个库创建的图片时，他们可能不会立即想到思维导图。</p>
<h2 id="2-思维导图的样式-style"><a href="#2-思维导图的样式-style" class="headerlink" title="2.思维导图的样式(style)"></a>2.思维导图的样式(style)</h2><p>每个思维导图都应该放在一个范围或一幅使用思维导图的样式的图片中。</p>
<ul>
<li><p><font color=red size=5pt >mindmap</font> </p>
<p><strong>对所有图片或至少包含思维导图的图片中使用此样式。 它安装了一整套对绘制思维导图有用的设置。</strong></p>
<p>具体的我们看例子</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包===============%
\usetikzlibrary{mindmap}
%================正文====================%
\begin{document} 
    \tikz[mindmap,concept color=red!50]
    \node[concept] {主图} 
        child[grow=right] %%%%%%%%设置子图的位置在右边%%%%%
        {node[concept] {子图}};
\end{document}</code></pre>
</li>
</ul>
<p>​       图的大小是预先定义好的，中等大小的思维导图可以放在一张A4纸上。</p>
<p>​       效果图<br><img src="document.svg" alt=""></p>
<ul>
<li><font color=red size=5 >every mindmap</font> </li>
</ul>
<p>  这种风格包括思维导图风格。更改此样式以向思维导图添加特殊设置</p>
<p>  这里的every可以是 <code>large</code>,<code>huge</code>等等</p>
<pre class=" language-tex"><code class="language-tex">  \documentclass[tikz]{standalone}
  \usepackage{xcolor}
  %=============设置中文=====================%
  \usepackage[UTF8]{ctex}
  %=============调用数学包===================%
  \usepackage{amsmath}
  %=============调用tikz画图包===============%
  \usepackage{tikz}
  %=============调用mindmap包================%
  \usetikzlibrary{mindmap}
  %=============正文================%
  \begin{document} 
      \begin{tikzpicture}[mindmap,concept color=blue!80]
       \node [concept]{主图 concept};
         \node [extra concept]at (5,0) {额外 concept};%at (5,0)设置额外concept的位置
      \end{tikzpicture}
  \end{document}</code></pre>
<p>​       效果图</p>
<p><img src="tu2.svg" alt=""></p>
<ul>
<li><p><font color=red size=5 >large mindmap</font> </p>
<p>这种样式包括思维导图样式，但是另外改变了概念和距离的默认大小，这样中等大小的思维导图适合一个A3大小的页面<strong>(A3大小的页面是A4大小的两倍)</strong></p>
</li>
<li><p><font color=red size=5pt>huge mindmap</font></p>
<p>这种风格会导致图更大，最好与A2及以上的纸张搭配使用<strong>（同样的A2大小的页面是A3大小的两倍）</strong></p>
</li>
</ul>
<h2 id="3-Concepts-Nodes"><a href="#3-Concepts-Nodes" class="headerlink" title="3.Concepts Nodes"></a>3.Concepts Nodes</h2><p>思维导图的基本对象在<code>TikZ</code>中被称为<code>concepts</code>（概念）。</p>
<p>下面介绍<code>Concepts</code>（概念）</p>
<h3 id="3-1-Isolated-Concepts-孤立概念"><a href="#3-1-Isolated-Concepts-孤立概念" class="headerlink" title="3.1 Isolated Concepts(孤立概念)"></a>3.1 Isolated Concepts(孤立概念)</h3><p>以下风格影响<code>Isolated Concepts</code>(孤立概念)是如何呈现的:</p>
<ul>
<li><p>style=<font color=red size=4pt>concept</font>(默认样式)</p>
<p>尽管某些样式（例如多余的概念）会自动安装此样式，但该样式应与所有作为概念的nodes(节点)一起使用。</p>
<p>基本上，这种样式使nodes(概念)节点变成圆形，并安装concepet（概念）颜色的统一颜色，请参见下文。 此外，每个concepts概念都称为样式。</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap}
%=============正文================%
\begin{document} 
\tikz[mindmap,concept color=red!50] 
\node [concept] {一些concept(概念)};
\end{document}</code></pre>
<p><img src="tu3.svg" alt=""></p>
</li>
<li><p>style=<font color=red size=4pt>every concept</font></p>
<p>为了更改concept(概念)nodes(节点)的外观，应更改此样式.比如<code>large concept</code></p>
<p>但是请注意，对于某些连接而言，concept(概念)的颜色应该统一，因此您不应使用此选项更改概念的颜色或绘制/填充状态。 它对于更改文本颜色和字体很有用。</p>
</li>
<li><p><font color=red size=4pt>concept colot=某个颜色</font></p>
<p>这个选项告诉TikZ应该使用某种颜色来填充和描边concept（概念）。</p>
<p>这个选项与将每个concept（概念）设置为所需的颜色之间的区别是，这个选项允许TikZ跟踪concept（概念）使用的颜色。</p>
<p>在两个连接的concept（概念）之间更改颜色时，<strong>TikZ可以自动创建一个可以在新旧概念颜色之间进行平滑过渡的阴影。</strong></p>
</li>
<li><p>style=<font color=red size=4pt>extra concept</font></p>
<p>这种风格是为那些不属于“思维导图树”的concept(概念)而设计的，但是要站在它的旁边。</p>
<p>通常，它们将具有 比较淡的颜色，且尺寸也较小。 为了使这些concept(概念)统一出现，并在代码中指出这些concept(概念)是多余的，可以使用此样式。</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap}
%=============正文================%
\begin{document} 
    \begin{tikzpicture}[mindmap,concept color=blue!80]
     \node [concept]{主图 concept};
       \node [extra concept]at (5,0) {额外 concept};%at (5,0)设置额外concept的位置
    \end{tikzpicture}
\end{document}</code></pre>
<p>效果图</p>
</li>
</ul>
<p>  <img src="tu4.svg" alt=""></p>
<ul>
<li><p>style=<font color=red size=4pt>every extra concept</font></p>
<p>更改此样式以更改额外concept(概念)的外观。同样的every可以是<code>large</code>,<code>huge</code>等样式</p>
</li>
</ul>
<h3 id="3-2Concepts-in-Trees"><a href="#3-2Concepts-in-Trees" class="headerlink" title="3.2Concepts in Trees"></a>3.2Concepts in Trees</h3><p>正如之前所指出的,tikz假设你的思维导图是用<code>child</code>建立的。有许多选项会影响concepts概念在树的不同级别上的呈现方式。</p>
<ul>
<li><p>style=<font color=red size=4pt>root concept</font>(主图)</p>
<p>这种样式用于思维导图树的根。通过添加一些东西，你可以改变思维导图的根是如何表现的。</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap}
%=============正文================%
\begin{document} 
     \tikzstyle{root concept}+=[concept color=blue!80,minimum size=3.5cm]                 \tikz[mindmap] \node [concept] {Root concept(主图)};
\end{document}</code></pre>
<p>效果图</p>
<p><img src="tu5.svg" alt=""></p>
</li>
</ul>
<p>   请注意，<code>large mindmap</code>之类的样式会重新定义这些样式，因此你应该仅在图片内部向此样式添加一些内 容。</p>
<ul>
<li><p>style=<font color=red size=4pt>level 1 concept</font>(第一层图)</p>
<p> 思维导图样式将此样式添加到1级样式中，这意味着思维导图树的第一级子元素将使用这种风格。</p>
<pre class=" language-tex"><code class="language-tex"> \documentclass[tikz]{standalone}
 \usepackage{xcolor}
 %=============设置中文=====================%
 \usepackage[UTF8]{ctex}
 %=============调用数学包===================%
 \usepackage{amsmath}
 %=============调用tikz画图包===============%
 \usepackage{tikz}
 %=============调用mindmap包================%
 \usetikzlibrary{mindmap}
 %=============正文================%
 \begin{document} 
      \tikzstyle{root concept}+=[concept color=blue!80]%设定主图样式
      \tikzstyle{level 1 concept}+=[concept color=red!50] %设定第一层子图样式
      \tikz[mindmap] 
      \node [concept] {主图（Root concept）} 
          child[grow=30] {node[concept] {第一层子图1}
              child {node[concept] {第二层子图1}}} 
          child[grow=0 ] {node[concept] {第一层子图2}
              child {node[concept] {第二层子图2}}};
 \end{document}</code></pre>
</li>
</ul>
<p><img src="tu6.svg" alt=""></p>
<ul>
<li><p>style=<font color=red size=4pt>level 2 concept</font>(第二层图)</p>
<p>和style=<font color=red size=4pt>level 1 concept</font>(第一层图)一样，作用在第二层图上</p>
</li>
<li><p>同理还有style=<font color=red size=4pt>level n concept</font>(第n层图)</p>
<p>作用在第n层图上</p>
</li>
<li><p><font color=red size=4pt>concept color=某个颜色</font></p>
<p>我们已经看到，这个选项用于改变concept（概念）的颜色。</p>
<p>现在我们来看看它在concept（概念）的子（child）节（nodes）点上使用时的效果。</p>
<p> 通常，此选项仅更改子项（child）的颜色。 但是，如果将选项作为子（child）操作的选项（而不是节点（nodes）操作的选项，也不是通过层1样式作为所有子选项的选项），则TikZ会平滑地将颜色过度，看例子。</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap}
%=============正文================%
\begin{document} 
   \tikz[mindmap,concept color=blue!80] 
   \node [concept] {Root concept} 
   %设置子图1颜色为red
       child[concept color=red,grow=30] {node[concept] {Child concept(子图1)}}
   %设置子图1颜色为orange
        child[concept color=orange,grow=0] {node[concept] {Childconcept(子图2)}};
\end{document}</code></pre>
<p><img src="tu7.svg" alt=""></p>
<p>为了让所有不同层次的子图都有不同的颜色，需要一点小操作:</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap}
%=============正文================%
\begin{document} 
    \tikzstyle{root concept}+=[concept color=blue] 
    \tikzstyle{level 1 concept}+=[set style={{every child}=[concept color=blue!50]}] \tikz[mindmap,text=white] 
  	\node [concept] {Root concept(主图)} 
  		child[grow=30] {node[concept] {child(子图1)}} 
        child[grow=0 ] {node[concept] {child(子图2)}};
\end{document}</code></pre>
</li>
</ul>
<p>  <img src="tu8.svg" alt=""></p>
<h2 id="4-连接概念（concept）"><a href="#4-连接概念（concept）" class="headerlink" title="4.连接概念（concept）"></a>4.连接概念（concept）</h2><h3 id="4-1-简单连接"><a href="#4-1-简单连接" class="headerlink" title="4.1 简单连接"></a>4.1 简单连接</h3><p>连接两个概念(<code>concept</code>）最简单的方法是在它们之间划一条线。为了使这些线条具有一致的外观，在绘制这些线条时，建议使用以下风格:</p>
<ul>
<li><p>style=<font color=red size=4pt>concept connection</font></p>
<p>此样式可用于两个概念（concept)之间的线。请随意重新定义此样式。</p>
<p>当你需要在主思维导图绘制完成后连接概念(concept)时，问题就出现了.在这种情况下，你会希望连接线位于主思维导图的后面。但是，只有在确定了概念的坐标之后才能画线。在这种情况下，您应该将连接线放置在一个背景层上，如下面的示例所示:</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap,backgrounds}%这里需要加backgrounds不然就不行
%=============正文================%
\begin{document} 
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\tikzstyle{root concept}+=[concept color=blue!20,minimum size=2cm] 
\tikzstyle{level 1 concept}+=[sibling angle=45] %子图分别旋转45度
  \begin{tikzpicture}[mindmap]
    \node [concept] {主图} [clockwise from=45]
      child { node[concept] (c1) {子图1}}
      child { node[concept] (c2) {子图2}}
      child { node[concept] (c3) {子图3}};
\begin{pgfonlayer}{background}
    \draw [concept connection]
    (c1) edge (c2) %子图1连接子图2
          edge (c3) %子图1连接子图3
    (c2) edge (c3);%子图2连接子图3
\end{pgfonlayer}
  \end{tikzpicture}
\end{document}</code></pre>
<p><img src="tu91.svg" alt=""></p>
</li>
</ul>
<h3 id="4-2The-Circle-Connection-Bar-Snake（实在不知道怎么翻译）"><a href="#4-2The-Circle-Connection-Bar-Snake（实在不知道怎么翻译）" class="headerlink" title="4.2The Circle Connection Bar Snake（实在不知道怎么翻译）"></a>4.2The Circle Connection Bar Snake（实在不知道怎么翻译）</h3><p>除了在两个概念之间建立简单的界线外，你还可以在两个节点之间添加一条稍微有机的端点。 默认情况下，这些条也用作思维导图树中父级的边缘。 </p>
<p>为了绘制条形图，使用了一条特殊的snake，该蛇在mindmap库中定义：</p>
<p>Snake=<font color=red size=4pt>circle connection bar</font></p>
<p>这条snake可以用来连接两个圆圈。 snake的起点应在第一个圆的边界上，终点应在第二个圆的边界上。 以下两个宏初始化圆圈的大小：</p>
<ul>
<li><code>\pgfsnakecirclestartradius</code></li>
<li><code>\pgfsnakecircleendradius</code></li>
</ul>
<p>此外，以下两个宏会影响snake：</p>
<ul>
<li><p><code>\pgfsnakesegmentamplitude</code></p>
</li>
<li><p><code>\pgfsnakesegmentangle</code></p>
</li>
</ul>
<p>snake本身将是一条路径，该路径相对于连接圆心的线以指定角度从第一个圆的边界开始。</p>
<p>然后，路径变为矩形，其厚度由振幅确定。</p>
<p>最后，路径在第二个圆上以相同的角度结束。</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap,backgrounds,snakes}
%=============正文================%
\begin{document} 
    \begin{tikzpicture}
    [decoration={start radius=1cm,end radius=.5cm,amplitude=2mm,angle=30}]
    \fill[blue!20] (0,0) circle (1cm);
    \fill[red!20] (2.5,0) circle (.5cm);
    \filldraw [draw=red,fill=black,
    decorate,decoration=circle connection bar] (1,0) -- (2,0);
    \end{tikzpicture}
\end{document}</code></pre>
<p><img src="tu9.svg" alt=""></p>
<p>可以看到，snake由三部分组成，并不是真正有用的绘画。然而，如果你只填充snake，如果你使用与圆圈相同的颜色，效果会更好。</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap,backgrounds,snakes}
%=============正文================%
\begin{document} 
  \begin{tikzpicture} [blue!50,decoration={start radius=1cm, end radius=.5cm,amplitude=2mm,angle=30}]
    \fill (0,0) circle (1cm);
    \fill (2.5,0) circle (.5cm);
    \fill [decorate,decoration=circle connection bar] (1,0) -- (2,0); 
  \end{tikzpicture}
\end{document}</code></pre>
<p>  <img src="tu10.svg" alt=""><br>注意稍微奇怪的外部sep = 0pt。 这是必需的，以便使snake位于实心圆的边界上，而不是在描边圆的边界上（实心圆稍大，而这个稍大的大小恰好是我们用来掩盖舍入误差的边界）。</p>
<h3 id="4-3The-Circle-Connection-Bar-To-Path"><a href="#4-3The-Circle-Connection-Bar-To-Path" class="headerlink" title="4.3The Circle Connection Bar To-Path"></a>4.3The Circle Connection Bar To-Path</h3><p>圆形连接条snake使用起来有点复杂。特别指定的半径是相当麻烦的(振幅和角度可以一劳永逸地设置)。由于这个原因，mindmap库定义了一个特殊的to-path，它为您执行必要的计算。</p>
<ul>
<li><p>style=<font color=red size=4pt>circle connection bar</font></p>
<p>这种风格安装了一个相当复杂的to-path。与普通的路径不同，此路径需要将路径的起点和目标命名为形状圆的节点—如果不是这样，则此路径将产生错误。</p>
<p>假设开始和目标是圆，到路径将首先计算这些圆的半径（通过测量从中心锚点到边界上某个锚点的距离），并<code>\ pgfsnakecirlce</code> …相应的宏。接着，填充选择被 设置为概念颜色，而draw = none被设置。蛇被设置为连接栏。最后，包括以下样式：</p>
<p>style=<font color=red size=4pt>every circle connection bar</font></p>
<p>重新定义此样式可以将圆形连接栏的外观更改为路径。</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap,backgrounds,snakes}
%=============正文================%
\begin{document} 
\begin{tikzpicture}[concept color=blue!50,blue!50,outer sep=0pt]
 \node (n1) at (0,0) [circle,minimum size=2cm,fill,draw,thick] {}; 
 \node (n2) at (2.5,0) [circle,minimum size=1cm,fill,draw,thick] {};
  \path (n1) to[circle connection bar] (n2);
 \end{tikzpicture}
\end{document}</code></pre>
<p><img src="tu10.1.svg" alt=""></p>
<p><strong>请注意，一个选项路径连接条在单个\ path中不能同时操作多个。 而是使用edge操作创建多个连接，并且此操作为每个edge创建一个新作用域</strong></p>
<p>在思维导图中，有时我们希望颜色从一种概念颜色变为另一种。 然后，<br>理想情况下，连接条应由这两种颜色之间的平滑过渡组成。 如果您“手工”尝试使用阴影来正确地进行此操作，则有些棘手，因此，思维导图库提供了一个特殊的选项来简化此过程。</p>
</li>
<li><p><font color=red size=4pt>circle connection bar switch color=from (first color) to (second color)</font></p>
<p>此样式的作用类似于圆形连接栏。 唯一的区别是，不是使用单色填充路径，而是使用阴影</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============调用mindmap包================%
\usetikzlibrary{mindmap,backgrounds,snakes}
%=============正文================%
\begin{document} 
\begin{tikzpicture}[outer sep=0pt] 
\node (n1) at (0,0) [circle,minimum size=2cm,fill,draw,thick,red] {}; 
\node (n2) at (30:2.5) [circle,minimum size=1cm,fill,draw,thick,blue] {};
\path (n1) to[circle connection bar switch color=from (red) to (blue)] (n2); \end{tikzpicture}
\end{document}</code></pre>
<p><img src="tu11.svg" alt=""></p>
</li>
</ul>
<h3 id="4-4Tree-Edges"><a href="#4-4Tree-Edges" class="headerlink" title="4.4Tree Edges"></a>4.4Tree Edges</h3><p>大多数情况下，将思维导图构建为树时，思维导图中的概念会自动连接。 原因是思维导图安装了一个圆形连接栏路径作为父路径的边缘。 另外，mindmap选项可以处理诸如设置正确的绘制和外部sep设置之类的事情。</p>
<p>详细地讲，mindmap选项将边缘设置为从父路径到使用to-path的路径。<br>圆形连接栏，用于连接父节点和子节点。 概念颜色选项（在本地）通过使用圆形连接栏开关颜色来更改此颜色，而将“原色”设置为旧的（父级）概念色，将“原色”设置为新的（子级）概念色。 这是当您向子命令提供概念颜色选项时，颜色将从父级的概念颜色更改为指定的颜色。</p>
<p>下面是这样构建树的一个例子:</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap,backgrounds,snakes}
%=============正文================%
\begin{document} 
  \begin{tikzpicture} 
   \path[mindmap,concept color=black,text=white]
     node[concept] {Computer Science} [clockwise from=0] 
          child[concept color=green!50!black]
           { 
               node[concept] {practical} [clockwise from=90]
              child { node[concept] {algorithms} }
              child { node[concept] {data structures} } 
              child { node[concept] {pro\-gramming languages} } 
              child { node[concept] {software engineer\-ing} }
           }
        child[concept color=blue]
          { 
              node[concept] {applied} [clockwise from=-30] 
              child { node[concept] {databases} } 
            child { node[concept] {WWW} }    
          }
        child[concept color=red] { node[concept] {technical} } 
        child[concept color=orange] { node[concept] {theoretical} };
  \end{tikzpicture}
\end{document}</code></pre>
<p><img src="tu12.svg" alt=""></p>
<h2 id="5-增加注释"><a href="#5-增加注释" class="headerlink" title="5.增加注释"></a>5.增加注释</h2><p>注释是思维导图之外的一些文本，与其他概念不同，它只是解释思维导图中的一些内容。下面的样式主要是为了帮助代码的读者了解注释节点中的节点。</p>
<ul>
<li><p>style=<font color=red size=4pt>annotation</font></p>
<p>此样式表示节点是注释节点。它包含每个注释的样式，允许您以方便的方式更改此样式。</p>
<pre class=" language-tex"><code class="language-tex">\documentclass[tikz]{standalone}
\usepackage{xcolor}
%=============设置中文=====================%
\usepackage[UTF8]{ctex}
%=============调用数学包===================%
\usepackage{amsmath}
%=============调用tikz画图包===============%
\usepackage{tikz}
%=============调用mindmap包================%
\usetikzlibrary{mindmap,backgrounds,snakes}
%=============正文================%
\begin{document} 
  \tikzstyle{every annotation}=[fill=red!20] 
  \begin{tikzpicture}[mindmap,concept color=blue!80] 
  \node [concept] (root) {Root concept};
  \node [annotation,right] at (root.east) 
       {The root concept is, in general, the most important concept.}; 
  \end{tikzpicture}
\end{document}</code></pre>
</li>
</ul>
<p>  <img src="tu13.svg" alt=""></p>
<ul>
<li><p>style=<font color=red size=4pt>every annotation</font></p>
<p>该样式包含在annotation中</p>
</li>
</ul>

            </div>
            <hr/>

            

    <div class="reprint" id="reprint-statement">
        
            <div class="reprint__author">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-user">
                        文章作者:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://wxyhgk.gitee.io" rel="external nofollow noreferrer">我心永恆</a>
                </span>
            </div>
            <div class="reprint__type">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-link">
                        文章链接:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://wxyhgk.gitee.io/latex-tikz-mindmap/">https://wxyhgk.gitee.io/latex-tikz-mindmap/</a>
                </span>
            </div>
            <div class="reprint__notice">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fas fa-copyright">
                        版权声明:
                    </i>
                </span>
                <span class="reprint-info">
                    本博客所有文章除特別声明外，均采用
                    <a href="https://creativecommons.org/licenses/by/4.0/deed.zh" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>
                    许可协议。转载请注明来源
                    <a href="https://wxyhgk.gitee.io" target="_blank">我心永恆</a>
                    !
                </span>
            </div>
        
    </div>

    <script async defer>
      document.addEventListener("copy", function (e) {
        let toastHTML = '<span>复制成功，请遵循本文的转载规则</span><button class="btn-flat toast-action" onclick="navToReprintStatement()" style="font-size: smaller">查看</a>';
        M.toast({html: toastHTML})
      });

      function navToReprintStatement() {
        $("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800);
      }
    </script>



            <div class="tag_share" style="display: block;">
                <div class="post-meta__tag-list" style="display: inline-block;">
                    
                        <div class="article-tag">
                            
                                <a href="/tags/%E6%95%99%E7%A8%8B/">
                                    <span class="chip bg-color">教程</span>
                                </a>
                            
                                <a href="/tags/tikz/">
                                    <span class="chip bg-color">tikz</span>
                                </a>
                            
                                <a href="/tags/tex/">
                                    <span class="chip bg-color">tex</span>
                                </a>
                            
                        </div>
                    
                </div>
                <div class="post_share" style="zoom: 80%; width: fit-content; display: inline-block; float: right; margin: -0.15rem 0;">
                    <link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">

<div id="article-share">
    
    
    <div class="social-share" data-sites="qq,qzone,wechat,weibo,douban" data-wechat-qrcode-helper="<p>微信扫一扫即可分享！</p>"></div>
    <script src="/libs/share/js/social-share.min.js"></script>
    

    

</div>

                </div>
            </div>
            
                <style>
    #reward {
        margin: 40px 0;
        text-align: center;
    }

    #reward .reward-link {
        font-size: 1.4rem;
        line-height: 38px;
    }

    #reward .btn-floating:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    #rewardModal {
        width: 320px;
        height: 350px;
    }

    #rewardModal .reward-title {
        margin: 15px auto;
        padding-bottom: 5px;
    }

    #rewardModal .modal-content {
        padding: 10px;
    }

    #rewardModal .close {
        position: absolute;
        right: 15px;
        top: 15px;
        color: rgba(0, 0, 0, 0.5);
        font-size: 1.3rem;
        line-height: 20px;
        cursor: pointer;
    }

    #rewardModal .close:hover {
        color: #ef5350;
        transform: scale(1.3);
        -moz-transform:scale(1.3);
        -webkit-transform:scale(1.3);
        -o-transform:scale(1.3);
    }

    #rewardModal .reward-tabs {
        margin: 0 auto;
        width: 210px;
    }

    .reward-tabs .tabs {
        height: 38px;
        margin: 10px auto;
        padding-left: 0;
    }

    .reward-content ul {
        padding-left: 0 !important;
    }

    .reward-tabs .tabs .tab {
        height: 38px;
        line-height: 38px;
    }

    .reward-tabs .tab a {
        color: #fff;
        background-color: #ccc;
    }

    .reward-tabs .tab a:hover {
        background-color: #ccc;
        color: #fff;
    }

    .reward-tabs .wechat-tab .active {
        color: #fff !important;
        background-color: #22AB38 !important;
    }

    .reward-tabs .alipay-tab .active {
        color: #fff !important;
        background-color: #019FE8 !important;
    }

    .reward-tabs .reward-img {
        width: 210px;
        height: 210px;
    }
</style>

<div id="reward">
    <a href="#rewardModal" class="reward-link modal-trigger btn-floating btn-medium waves-effect waves-light red">赏</a>

    <!-- Modal Structure -->
    <div id="rewardModal" class="modal">
        <div class="modal-content">
            <a class="close modal-close"><i class="fas fa-times"></i></a>
            <h4 class="reward-title">你的赏识是我前进的动力</h4>
            <div class="reward-content">
                <div class="reward-tabs">
                    <ul class="tabs row">
                        <li class="tab col s6 alipay-tab waves-effect waves-light"><a href="#alipay">支付宝</a></li>
                        <li class="tab col s6 wechat-tab waves-effect waves-light"><a href="#wechat">微 信</a></li>
                    </ul>
                    <div id="alipay">
                        <img src="/medias/reward/alipay.jpg" class="reward-img" alt="支付宝打赏二维码">
                    </div>
                    <div id="wechat">
                        <img src="/medias/reward/wechat.png" class="reward-img" alt="微信打赏二维码">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        $('.tabs').tabs();
    });
</script>
            
        </div>
    </div>

    

    

    

    

    
        <style>
    .valine-card {
        margin: 1.5rem auto;
    }

    .valine-card .card-content {
        padding: 20px 20px 5px 20px;
    }

    #vcomments textarea {
        box-sizing: border-box;
        background: url("/medias/comment_bg.png") 100% 100% no-repeat;
    }

    #vcomments p {
        margin: 2px 2px 10px;
        font-size: 1.05rem;
        line-height: 1.78rem;
    }

    #vcomments blockquote p {
        text-indent: 0.2rem;
    }

    #vcomments a {
        padding: 0 2px;
        color: #4cbf30;
        font-weight: 500;
        text-decoration: none;
    }

    #vcomments img {
        max-width: 100%;
        height: auto;
        cursor: pointer;
    }

    #vcomments ol li {
        list-style-type: decimal;
    }

    #vcomments ol,
    ul {
        display: block;
        padding-left: 2em;
        word-spacing: 0.05rem;
    }

    #vcomments ul li,
    ol li {
        display: list-item;
        line-height: 1.8rem;
        font-size: 1rem;
    }

    #vcomments ul li {
        list-style-type: disc;
    }

    #vcomments ul ul li {
        list-style-type: circle;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    #vcomments table, th, td {
        border: 0;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments h1 {
        font-size: 1.85rem;
        font-weight: bold;
        line-height: 2.2rem;
    }

    #vcomments h2 {
        font-size: 1.65rem;
        font-weight: bold;
        line-height: 1.9rem;
    }

    #vcomments h3 {
        font-size: 1.45rem;
        font-weight: bold;
        line-height: 1.7rem;
    }

    #vcomments h4 {
        font-size: 1.25rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    #vcomments h5 {
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1.4rem;
    }

    #vcomments h6 {
        font-size: 1rem;
        line-height: 1.3rem;
    }

    #vcomments p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    #vcomments hr {
        margin: 12px 0;
        border: 0;
        border-top: 1px solid #ccc;
    }

    #vcomments blockquote {
        margin: 15px 0;
        border-left: 5px solid #42b983;
        padding: 1rem 0.8rem 0.3rem 0.8rem;
        color: #666;
        background-color: rgba(66, 185, 131, .1);
    }

    #vcomments pre {
        font-family: monospace, monospace;
        padding: 1.2em;
        margin: .5em 0;
        background: #272822;
        overflow: auto;
        border-radius: 0.3em;
        tab-size: 4;
    }

    #vcomments code {
        font-family: monospace, monospace;
        padding: 1px 3px;
        font-size: 0.92rem;
        color: #e96900;
        background-color: #f8f8f8;
        border-radius: 2px;
    }

    #vcomments pre code {
        font-family: monospace, monospace;
        padding: 0;
        color: #e8eaf6;
        background-color: #272822;
    }

    #vcomments pre[class*="language-"] {
        padding: 1.2em;
        margin: .5em 0;
    }

    #vcomments code[class*="language-"],
    pre[class*="language-"] {
        color: #e8eaf6;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }

    #vcomments b,
    strong {
        font-weight: bold;
    }

    #vcomments dfn {
        font-style: italic;
    }

    #vcomments small {
        font-size: 85%;
    }

    #vcomments cite {
        font-style: normal;
    }

    #vcomments mark {
        background-color: #fcf8e3;
        padding: .2em;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }
</style>

<div class="card valine-card" data-aos="fade-up">
    <div class="comment_headling" style="font-size: 20px; font-weight: 700; position: relative; left: 20px; top: 15px; padding-bottom: 5px;">
        <i class="fas fa-comments fa-fw" aria-hidden="true"></i>
        <span>评论</span>
    </div>
    <div id="vcomments" class="card-content" style="display: grid">
    </div>
</div>

<script src="/libs/valine/av-min.js"></script>
<script src="/libs/valine/Valine.min.js"></script>
<script>
    new Valine({
        el: '#vcomments',
        appId: '8i5IVUkUwJXeA2lmcXHA1oya-gzGzoHsz',
        appKey: '8VLP3WBVp7k20K81z9qUxg1i',
        notify: 'false' === 'true',
        verify: 'false' === 'true',
        visitor: 'true' === 'true',
        avatar: 'mm',
        pageSize: '10',
        lang: 'zh-cn',
        placeholder: 'just go go'
    });
</script>

    

    

<article id="prenext-posts" class="prev-next articles">
    <div class="row article-row">
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge left-badge text-color">
                <i class="fas fa-chevron-left"></i>&nbsp;上一篇</div>
            <div class="card">
                <a href="/mma-graph1/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/17.jpg" class="responsive-img" alt="几个特殊的图像分享">
                        
                        <span class="card-title">几个特殊的图像分享</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            几个特殊的图像分享这几天我在一本书上看到几个不错的图像，分享一下。这本书是《Mathematica A Problem-Centered Approach》上面基本是以题目为导向，一步步地教你怎么操作，我看了一大半，感觉收获蛮大的。这里我提
                        
                    </div>
                    <div class="publish-info">
                        <span class="publish-date">
                            <i class="far fa-clock fa-fw icon-date"></i>2020-05-08
                        </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            我心永恆
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/Mathematica/">
                        <span class="chip bg-color">Mathematica</span>
                    </a>
                    
                    <a href="/tags/%E5%88%86%E4%BA%AB/">
                        <span class="chip bg-color">分享</span>
                    </a>
                    
                    <a href="/tags/%E7%94%BB%E5%9B%BE/">
                        <span class="chip bg-color">画图</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge right-badge text-color">
                下一篇&nbsp;<i class="fas fa-chevron-right"></i>
            </div>
            <div class="card">
                <a href="/mma-rulepatten3/">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/4.jpg" class="responsive-img" alt="Mathematica——模式规则3">
                        
                        <span class="card-title">Mathematica——模式规则3</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            
说明最近心里总是很烦，不知道为什么，可能大学要毕业了，对未来还是很迷茫，不知道怎么办，很难受。希望以后能好起来吧。 

1.3 自带模式的内置函数1.3.1 Cases这个函数通常用在表达式的结构上。更准确地说，它用于表达式中与特定模式匹
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2020-03-25
                            </span>
                        <span class="publish-author">
                            
                            <i class="fas fa-user fa-fw"></i>
                            我心永恆
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/%E6%95%99%E7%A8%8B/">
                        <span class="chip bg-color">教程</span>
                    </a>
                    
                    <a href="/tags/Mathematica/">
                        <span class="chip bg-color">Mathematica</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
    </div>
</article>

</div>



<!-- 代码块功能依赖 -->
<script type="text/javascript" src="/libs/codeBlock/codeBlockFuction.js"></script>

<!-- 代码语言 -->

<script type="text/javascript" src="/libs/codeBlock/codeLang.js"></script>


<!-- 代码块复制 -->

<script type="text/javascript" src="/libs/codeBlock/codeCopy.js"></script>


<!-- 代码块收缩 -->


<!-- 代码块折行 -->


    </div>
    <div id="toc-aside" class="expanded col l3 hide-on-med-and-down">
        <div class="toc-widget">
            <div class="toc-title"><i class="far fa-list-alt"></i>&nbsp;&nbsp;目录</div>
            <div id="toc-content"></div>
        </div>
    </div>
</div>

<!-- TOC 悬浮按钮. -->

<div id="floating-toc-btn" class="hide-on-med-and-down">
    <a class="btn-floating btn-large bg-color">
        <i class="fas fa-list-ul"></i>
    </a>
</div>


<script src="/libs/tocbot/tocbot.min.js"></script>
<script>
    $(function () {
        tocbot.init({
            tocSelector: '#toc-content',
            contentSelector: '#articleContent',
            headingsOffset: -($(window).height() * 0.4 - 45),
            collapseDepth: Number('2'),
            headingSelector: 'h2, h3, h4, h5, h6'
        });

        // modify the toc link href to support Chinese.
        let i = 0;
        let tocHeading = 'toc-heading-';
        $('#toc-content a').each(function () {
            $(this).attr('href', '#' + tocHeading + (++i));
        });

        // modify the heading title id to support Chinese.
        i = 0;
        $('#articleContent').children('h2, h3, h4, h5, h6').each(function () {
            $(this).attr('id', tocHeading + (++i));
        });

        // Set scroll toc fixed.
        let tocHeight = parseInt($(window).height() * 0.4 - 64);
        let $tocWidget = $('.toc-widget');
        $(window).scroll(function () {
            let scroll = $(window).scrollTop();
            /* add post toc fixed. */
            if (scroll > tocHeight) {
                $tocWidget.addClass('toc-fixed');
            } else {
                $tocWidget.removeClass('toc-fixed');
            }
        });

        
        /* 修复文章卡片 div 的宽度. */
        let fixPostCardWidth = function (srcId, targetId) {
            let srcDiv = $('#' + srcId);
            if (srcDiv.length === 0) {
                return;
            }

            let w = srcDiv.width();
            if (w >= 450) {
                w = w + 21;
            } else if (w >= 350 && w < 450) {
                w = w + 18;
            } else if (w >= 300 && w < 350) {
                w = w + 16;
            } else {
                w = w + 14;
            }
            $('#' + targetId).width(w);
        };

        // 切换TOC目录展开收缩的相关操作.
        const expandedClass = 'expanded';
        let $tocAside = $('#toc-aside');
        let $mainContent = $('#main-content');
        $('#floating-toc-btn .btn-floating').click(function () {
            if ($tocAside.hasClass(expandedClass)) {
                $tocAside.removeClass(expandedClass).hide();
                $mainContent.removeClass('l9');
            } else {
                $tocAside.addClass(expandedClass).show();
                $mainContent.addClass('l9');
            }
            fixPostCardWidth('artDetail', 'prenext-posts');
        });
        
    });
</script>

    

</main>



    <footer class="page-footer bg-color">
    
    <div class="container row center-align" style="margin-bottom: 0px !important;">
        <div class="col s12 m8 l8 copy-right">
            Copyright&nbsp;&copy;
            <span id="year">2019</span>
            <a href="https://wxyhgk.gitee.io" target="_blank">我心永恆</a>
            |&nbsp;Powered by&nbsp;<a href="https://hexo.io/" target="_blank">Hexo</a>
            |&nbsp;Theme&nbsp;<a href="https://github.com/blinkfox/hexo-theme-matery" target="_blank">Matery</a>
            <br>
            
            &nbsp;<i class="fas fa-chart-area"></i>&nbsp;站点总字数:&nbsp;<span
                class="white-color">43.3k</span>&nbsp;字
            
            
            
            
            
            
            <span id="busuanzi_container_site_pv">
                |&nbsp;<i class="far fa-eye"></i>&nbsp;总访问量:&nbsp;<span id="busuanzi_value_site_pv"
                    class="white-color"></span>&nbsp;次
            </span>
            
            
            <span id="busuanzi_container_site_uv">
                |&nbsp;<i class="fas fa-users"></i>&nbsp;总访问人数:&nbsp;<span id="busuanzi_value_site_uv"
                    class="white-color"></span>&nbsp;人
            </span>
            
            <br>
            
            <br>
            
        </div>
        <div class="col s12 m4 l4 social-link social-statis">


    <a href="mailto:3123624718@qq.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
        <i class="fas fa-envelope-open"></i>
    </a>







    <a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=3123624718" class="tooltipped" target="_blank" data-tooltip="QQ联系我: 3123624718" data-position="top" data-delay="50">
        <i class="fab fa-qq"></i>
    </a>







</div>
    </div>
    <script src="/js/highlight.pack.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
</footer>

<div class="progress-bar"></div>


    <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fas fa-search"></i>&nbsp;&nbsp;搜索</span>
            <input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script src="/js/search.js"></script>
<script type="text/javascript">
$(function () {
    searchFunc("/" + "search.xml", 'searchInput', 'searchResult');
});
</script>
    <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fas fa-arrow-up"></i>
    </a>
</div>


    <script src="/libs/materialize/materialize.min.js"></script>
    <script src="/libs/masonry/masonry.pkgd.min.js"></script>
    <script src="/libs/aos/aos.js"></script>
    <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
    <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
    <script src="/js/matery.js"></script>

    <!-- Baidu Analytics -->

    <!-- Baidu Push -->

<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        } else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

    
    <script src="/libs/others/clicklove.js" async="async"></script>
    
    
    <script async src="/libs/others/busuanzi.pure.mini.js"></script>
    

    

    

    
    <script type="text/javascript" color="0,0,255"
        pointColor="0,0,255" opacity='0.7'
        zIndex="-1" count="99"
        src="/libs/background/canvas-nest.js"></script>
    

    

    
    
    
    <script src="/libs/instantpage/instantpage.js" type="module"></script>
    

</body>

</html>
